import baseEditForm from '../_classes/component/Component.form';

import FileEditData from './editForm/File.edit.data';
import FileEditDisplay from './editForm/File.edit.display';
import FileEditFile from './editForm/File.edit.file';
import FileEditValidation from './editForm/File.edit.validation';

export default function (...extend) {
  return baseEditForm(
    [
      {
        key: 'display',
        components: FileEditDisplay,
      },
      {
        key: 'data',
        components: FileEditData,
      },
      {
        label: 'File',
        key: 'file',
        weight: 5,
        components: FileEditFile,
      },
      {
        key: 'validation',
        components: FileEditValidation,
      },
    ],
    ...extend,
  );
}
